@echo off
echo %PATH% | findstr "./driver;" >nul
if errorlevel 1 (goto setPath) else (goto run)

:setPath
SET PATH=./driver;%PATH%

:run

SET tag=%1

if "%tag%"=="" (goto ParameterError) else (goto run)

:ParameterError
  echo ******************************************************
  echo *** 
  echo ***     Example: run.bat @XYGL
  echo *** 
  echo ******************************************************

  goto end

:run
  ant -buildfile build.xml -Dtags="%tag%"

  goto end

:end



